<link href="/css/bootstrap.min.css" rel="stylesheet"/> 
<link href="/templates/admin/css/admin_default.css" rel="stylesheet"/> 
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/js/select-chain.js"></script>
<?php if($this->error){ ?>
	<div class="notification error" >
		<span class="strong">Error:</span>
		<?php echo $this->error; ?>.
		<span class="close" title="Dismiss"></span>
	</div>
<?php }?>
<?php if($this->warning){ ?>
	<div class="notification warning" >
		<span class="strong">Warning:</span>
		<?php echo $this->warning; ?>
		<span class="close" title="Dismiss"></span>
	</div>
<?php }?>

<?php if($this->success){ ?>
	<div class="notification success" >
		<span class="strong">Success:</span>
		<?php echo $this->success; ?>.
		<span class="close" title="Dismiss"></span>
	</div>
<?php }?>
<?php $item = $this->arrParam; ?>


<form name="editor" action="" method="post" enctype="application/x-www-form-urlencoded">     
<div id="main-content">
    <div class="news-content">
        <label>Tên kênh</label>
        <input type="text" name="name" id="name" value="<?php echo $item['name']?>"/>
    </div>
    <div class="news-content">
        <label>Mặc định</label>    
        <?php echo $this->formCheckbox('play_default', $item['play_default'], null, array('checked' => '1','unChecked' => '0'));?> 
        <span style="margin-left: 20px"> ***Đánh dấu để kênh này chạy mặc định khi vào trang xem truyền hình trực tuyến</span>
    </div>
    <div class="news-content">
        <label>Thể loại</label>    
        <?php echo $this->formSelect("type",$item['type'],null,array("1"=>"Việt Nam","2"=>"Quốc tế"))?>
    </div>
    <div class="news-content">
        <label>Chọn ảnh:</label>
        <input type="text" value="<?php echo $item['logo'];?>" id="urlSelectImg" name="logo" style="display: none;" />
        <input type="button" value="Upload" id="btnSelectImg" name="btnSelectImg" class="btn btn-success" />
        <div id="displayImages"><img max-height=100 max-width=100 class='images' src="<?php echo $item['logo'];?>"/></div>
    </div>
    <div class="news-content">
        <label>Mã nhúng:</label>
        <textarea style="width: 570px; height: 135px" name="code"><?php echo $item['code'] ?></textarea>
    </div>
    <span style="margin-left: 210px;float: left;margin-top: 20px;">*** Chỉnh sửa lại thông số <b>WIDTH</b> trong mã nhúng <b><= 470px</b> cho phần mã nhúng Mobile</span>
    <div class="news-content">
        <label>Mã nhúng cho trang Mobile:</label>
        <textarea style="width: 570px; height: 135px" name="code_mobile"><?php echo $item['code_mobile'] ?></textarea>
    </div>
    <div class="news-content">
        <label>Mô tả:</label>
        <textarea name="description"><?php echo $item['description'] ?></textarea>
    </div>
    
    <div class="news-content">
        <label>Trạng thái:</label>
          <div>
            <select name="status">
                <option value="1" >ON</option>
                <option value="0" >OFF</option>
            </select>
          </div>
    </div>
    <div class="news-content">
        <label></label>
        <div>
            <input type="submit" value="Thêm" class="btn btn-success"/>
            <button style="margin-left: 20px;" onclick="javascript:window.location='/admin/tvonline/index';return false"  class="actionBtn" ><span>Back</span></button>
        </div>
    </div>
    
</div>
</form>
 
  <script>
               CKEDITOR.replace('description',{
                   fullpage:true,
                   extraPlugins:'docprops',
                   skin:'office2003',
                   
                   extraPlugins : 'autogrow',
	               autoGrow_maxHeight : 600,
                   removePlugins : 'resize'
               });
 </script>